local zhenguan = fk.CreateSkill {
  name = "lingling__zhenguan",
  tags = { Skill.Limited },
}

Fk:loadTranslationTable{
  ["lingling__zhenguan"] = "贞观",
  [":lingling__zhenguan"] = "限定技，出牌阶段，你可以视为使用【韬光养晦】。",

  ["#lingling__zhenguan"] = "贞观：你可以视为使用【韬光养晦】！",

  ["$lingling__zhenguan"] = "有平天下之志，更应有，治天下之能。",
  ["$lingling__zhenguan1"] = "自往五百年，或曰汉光，或说隋文，我之治皆无其上。",
  ["$lingling__zhenguan2"] = "纵观三千载，有时桀纣，有时灾荒，我之民皆无其下。",
}

zhenguan:addEffect("viewas", {
  anim_type = "drawcard",
  prompt = "#lingling__zhenguan",
  card_filter = Util.FalseFunc,
  view_as = function(self, player, cards)
    if #cards ~= 0 then return end
    local card = Fk:cloneCard("ling__hide_capacities")
    card.skillName = zhenguan.name
    return card
  end,
  enabled_at_play = function (self, player)
    return player:usedSkillTimes(zhenguan.name, Player.HistoryGame) == 0
  end,
})

return zhenguan
